package day02;

public class DataTypeDemo {
    public static void main(String[] args) {

        /*int a=5;
//        int a0=10000000000;
        System.out.println(5/2);//2
        System.out.println(2/5);//0
        System.out.println(5/2.0);//2.5
        int a1=Integer.MAX_VALUE;
        System.out.println(a1);
        System.out.println(a1+1);

         */
        /*
        long b=10;
//        long b1=10000000000;
        System.out.println(b);//10
        long b1=10000000000l;
        System.out.println(b1);//100亿
        long b2=2*1000000000*10l;
        System.out.println(b2);//200亿
        long b3=3*1000000000*10l;
        System.out.println(b3);//不是300亿
        long b4=3l*1000000000*10l;

        System.out.println(b4);//300亿

         */
        /*
        double c=3.14;
        float c1=3.14f;
        double c2=3.0;
        c=c-c2;
        System.out.println(c);

         */
        /*
        boolean d=true;
        boolean d1=false;
//        boolean d2=3;

         */
        /*
        char c1='女';
//        char c2='10';
        char c3='\\';
        char c4='a';
        char c5=' ';
        char c8=65535;
        System.out.println(c8);
         */
        /*
        int a=5;
        long b=a;
        System.out.println(b);
        int c=(int)b;
        System.out.println(c);

        long b1=10000000000l;
        int a1=(int)b1;
        System.out.println(a1);
        double b2=3.14;
        int a2=(int)b2;
        System.out.println(a2);
         */
        short b1=5;
        short b2=6;
        short b3=(short) (b1+b2);
        System.out.println(b3);
        int c1='a';
        System.out.println(2+2);
        System.out.println(2+c1);//99
        System.out.println('2'+'2');
        System.out.println('2');
        System.out.println(c1);
        char c2=97;
        System.out.println(c2);




        /*
        byte b1=9;
        byte b2=10;
        byte b3=(byte) (b1+b2);//19
        System.out.println(b3);//19
        System.out.println(2+'3');//53
        System.out.println('3'+'3');//51+51=102
        System.out.println(2+2);//4
        System.out.println('3');//51
        int m='3';
        System.out.println(m);//51
        char n=51;
        System.out.println(n);//3

         */
        /*
        byte b1=5;
        byte b2=6;
        byte b3=(byte)(b1+b2);
        System.out.println(b3);
        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');
        System.out.println('2');
        int m='b';
        System.out.println(m);
        char n=98;
        System.out.println(n);

         */


        /*
        byte b1=5;
        byte b2=6;
        byte b3=(byte)(b1+b2);
        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');
        System.out.println('2');
        int m='a';
        System.out.println(m);
        char n=97;
        System.out.println(n);

         */







        /*
        int a=5;
        long b=a;
        int c=(int)b;
        double d=a;
        System.out.println(d);
        int e=(int)d;
        long f=10000000000l;
        int g=(int)f;
        System.out.println(g);
        double h=25.789;
        int i=(int)h;
        System.out.println(i);

         */



        /*int a=5;
        long b=a;
        int c=(int)b;
        double d=a;
        System.out.println(d);
        int e=(int)d;
        System.out.println(e);
        long d1=5;
        double d2=5;
        long f=10000000000l;
        int g=(int)f;
        System.out.println(g);
        double h=25.678;
        int m=(int)h;
        System.out.println(m);

         */








        /*
        char c1='女';
        char c2='f';
        char c3='6';
        char c4=' ';
//        char c5=女;
//        char c6='';
//        char c7='10';
        char c8=65;
        System.out.println(c8);
        char c9='\'';
        System.out.println(c9);
        char c10='男';
        char c11='m';
        char c12=' ';
        char c13=97;
        System.out.println(c13);
        char c14='\\';
        System.out.println(c14);
        char c15='张';
        char c16='z';
        char c17='?';
        char c18=48;
        System.out.println(c18);
        char c19='\'';
        System.out.println(c19);

         */
        /*
        boolean a=true;
        boolean b=false;
//        boolean c=250;
        boolean a1=true;
        boolean b1=false;
//        boolean c1=250;

         */




        /*
        double a=3.14;
        float b=3.14F;
        double c=3.2,d=2.9;
        System.out.println(c-d);

        double a1=3.14;
        float b1=3.14f;
        double c1=3.5,d1=3.4;
        System.out.println(c1-d1);

         */








        /*
        long a=25L;
//        long b=10000000000;
        long c=10000000000l;
//        long d=3.14l;
        long e=1000000000*2*10l;
        System.out.println(e);
        long f=1000000000*3*10l;
        System.out.println(f);
        long g=1000000000l*3*10;
        System.out.println(g);

        long a0=25l;
//        long b0=10000000000;
        long c0=10000000000l;
//        long d0=3.14l;
        long e0=1000000000*2*10l;
        System.out.println(e0);
        long f0=1000000000*3*10l;
        System.out.println(f0);
        long g0=1000000000l*3*10;
        System.out.println(g0);

        long a1=25l;
        long b1=10000000000l;
//        long d1=3.24l;
        long e1=1000000000*2*10l;
        System.out.println(e1);
        long f1=1000000000*3*10l;
        System.out.println(f1);
        long g1=1000000000l*9*10;
        System.out.println(g1);

         */









        /*
        int a=25;
//        int a0=10000000000;
//        int c=3.14;
        System.out.println(5/2);
        System.out.println(2/5);
        System.out.println(5.0/2);
        int d=2147483647;
        d=d+1;
        System.out.println(d);

         */







    }
}
